// pages/baoming/baoming.js
Page({
  data:{
    list:[
      {'name':'盛华驾校',"src":"http://www.xuechebu.com/upload/201512/10/201512101010485274.jpg"},
       {'name':'龙泉驾校',"src":"http://www.xuechebu.com/upload/201511/10/201511101425137079.jpg"},
       {'name':'海淀驾校',"src":"http://www.xuechebu.com/upload/201511/10/201511101346324384.jpg"},
       {'name':'北方驾校',"src":"http://www.xuechebu.com/upload/201511/10/201511101433476325.jpg"},
       {'name':'远大驾校',"src":"http://www.xuechebu.com/upload/201511/10/201511101357321802.jpg"}
    ]
  },
  bindViewTap:function(event){
    //console.log();
    
    wx.navigateTo({
      url: '../banxing/banxing?name='+event.target.dataset.name
    })
  },
  onLoad:function(options){
    // 页面初始化 options为页面跳转所带来的参数
  },
  onReady:function(){
    // 页面渲染完成
  },
  onShow:function(){
    // 页面显示
  },
  onHide:function(){
    // 页面隐藏
  },
  onUnload:function(){
    // 页面关闭
  }
})